package aroundadvice.serviceimpl.test;

import aroundadvice.service.CityService;
import aroundadvice.service.ProductService;

public class ProductServiceImpl implements ProductService {
    @Override
    public void add(String name) {
        //System.out.println("开启事务");
        System.out.println("===2===调用DAO "+name);

        for (int i = 0; i < 2000; i++) {
            System.out.println(i);
        }

        //System.out.println("关闭事务");
    }

    @Override
    public String query(String name) {
        //System.out.println("开启事务");
        System.out.println("===2===调用DAO "+name);
        //System.out.println("关闭事务");
        return name;
    }

    @Override
    public Integer querys(String name,Integer age) {
        System.out.println("===2===调用DAO "+age);
        return age;
    }
}
